<template>
  <span v-if="record.to == 'business/detail'">{{ getApprove(record.approve) }}</span>
  <span v-else-if="record.to == 'evaluation/brief'">{{ getAppState(record.asseApprove) }}</span>
  <span v-else-if="record.to == 'manage/detail'">{{ getState(record.projectStage) }}</span>
  <span v-else>-</span>
</template>
<script>
import { approveState, asseAppState, manageState } from '@/dict'
export default {
  name: 'listStatus',
  props: ['record'],
  data: () => ({}),
  methods: {
    getApprove(v) {
      return approveState.find(el => el.value == v)?.text
    },
    getAppState(v) {
      return asseAppState.find(el => el.value == v)?.text
    },
    getState(v) {
      return manageState.find(el => el.value == v)?.text
    }
  }
}
</script>
<style lang="scss" scoped></style>
